include(CMakeFindDependencyMacro)

set(ZENOHPICO_FEATURE_UNSTABLE_API @Z_FEATURE_UNSTABLE_API@)
set(ZENOHPICO_FEATURE_MULTI_THREAD @Z_FEATURE_MULTI_THREAD@)
set(ZENOHPICO_FEATURE_PUBLICATION @Z_FEATURE_PUBLICATION@)
set(ZENOHPICO_FEATURE_SUBSCRIPTION @Z_FEATURE_SUBSCRIPTION@)
set(ZENOHPICO_FEATURE_QUERY @Z_FEATURE_QUERY@)
set(ZENOHPICO_FEATURE_QUERYABLE @Z_FEATURE_QUERYABLE@)
set(ZENOHPICO_FEATURE_RAWETH_TRANSPORT @Z_FEATURE_RAWETH_TRANSPORT@)
set(ZENOHPICO_FEATURE_INTEREST @Z_FEATURE_INTEREST@)
set(ZENOHPICO_FEATURE_LIVELINESS @Z_FEATURE_LIVELINESS@)

if(@CHECK_THREADS@)
  find_dependency(Threads REQUIRED)
endif()

include("${CMAKE_CURRENT_LIST_DIR}/zenohpicoTargets.cmake")

if(@PICO_SHARED@)
  add_library(zenohpico::shared ALIAS zenohpico::zenohpico_shared)
endif()
if(@PICO_STATIC@)
  add_library(zenohpico::static ALIAS zenohpico::zenohpico_static)
endif()

if(@BUILD_SHARED_LIBS@)
  add_library(zenohpico::lib ALIAS zenohpico::zenohpico_shared)
else()
  add_library(zenohpico::lib ALIAS zenohpico::zenohpico_static)
endif()
